package com.scheduling.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scheduling.system.mapper.BusinesslineschedulingrulesMapper;
import com.scheduling.system.domain.Businesslineschedulingrules;
import com.scheduling.system.service.IBusinesslineschedulingrulesService;

/**
 * 业务线排班规则Service业务层处理
 * 
 * @author mj
 * @date 2025-05-06
 */
@Service
public class BusinesslineschedulingrulesServiceImpl implements IBusinesslineschedulingrulesService 
{
    @Autowired
    private BusinesslineschedulingrulesMapper businesslineschedulingrulesMapper;

    /**
     * 查询业务线排班规则
     * 
     * @param id 业务线排班规则主键
     * @return 业务线排班规则
     */
    @Override
    public Businesslineschedulingrules selectBusinesslineschedulingrulesById(Long id)
    {
        return businesslineschedulingrulesMapper.selectBusinesslineschedulingrulesById(id);
    }

    /**
     * 查询业务线排班规则列表
     * 
     * @param businesslineschedulingrules 业务线排班规则
     * @return 业务线排班规则
     */
    @Override
    public List<Businesslineschedulingrules> selectBusinesslineschedulingrulesList(Businesslineschedulingrules businesslineschedulingrules)
    {
        return businesslineschedulingrulesMapper.selectBusinesslineschedulingrulesList(businesslineschedulingrules);
    }

    /**
     * 新增业务线排班规则
     * 
     * @param businesslineschedulingrules 业务线排班规则
     * @return 结果
     */
    @Override
    public int insertBusinesslineschedulingrules(Businesslineschedulingrules businesslineschedulingrules)
    {
        return businesslineschedulingrulesMapper.insertBusinesslineschedulingrules(businesslineschedulingrules);
    }

    /**
     * 修改业务线排班规则
     * 
     * @param businesslineschedulingrules 业务线排班规则
     * @return 结果
     */
    @Override
    public int updateBusinesslineschedulingrules(Businesslineschedulingrules businesslineschedulingrules)
    {
        return businesslineschedulingrulesMapper.updateBusinesslineschedulingrules(businesslineschedulingrules);
    }

    /**
     * 批量删除业务线排班规则
     * 
     * @param ids 需要删除的业务线排班规则主键
     * @return 结果
     */
    @Override
    public int deleteBusinesslineschedulingrulesByIds(Long[] ids)
    {
        return businesslineschedulingrulesMapper.deleteBusinesslineschedulingrulesByIds(ids);
    }

    /**
     * 删除业务线排班规则信息
     * 
     * @param id 业务线排班规则主键
     * @return 结果
     */
    @Override
    public int deleteBusinesslineschedulingrulesById(Long id)
    {
        return businesslineschedulingrulesMapper.deleteBusinesslineschedulingrulesById(id);
    }
}
